<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<spring:hasBindErrors name="shopBoardCommand"/>
<form:errors path="command"/>
<form action="boardwrite.do" method="post">

	<spring:message code="write.form.sb_title"/>
	<input type="text" name="sb_title" value="${command.sb_title}"><br>
	<form:errors path="shopBoardCommand.sb_title"/>
	<br>
	<spring:message code="write.form.m_id"/> 
	<input type="hidden" name="m_id" value="${userId}">${userId}<br>
	<form:errors path="shopBoardCommand.m_id"/>
	<br>
	<spring:message code="write.form.sb_passwd"/>
	<input type="password" name="sb_passwd" value="${command.sb_passwd}"><br>
	<form:errors path="shopBoardCommand.sb_passwd"/>
	<br>
	<spring:message code="write.form.sb_content"/>
	<textarea rows="10" cols="50" name="sb_content">${command.sb_content}</textarea>
	<form:errors path="shopBoardCommand.sb_content"/>
	<br>
	
	<input type="submit" value="<spring:message code="write.form.submit"/>">
	<input type="button" value="<spring:message code="list.content.sblist"/>"
										onclick="location.href='boardlist.do'">
</form>
 